/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: DuKe TeAm
 * License Type: Purchased
 */
package orm;

import java.util.List;
import org.hibernate.criterion.DetachedCriteria;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class Trp_cursoDetachedCriteria extends AbstractORMDetachedCriteria {
	public final IntegerExpression cu_id;
	public final StringExpression cu_curso;
	
	public Trp_cursoDetachedCriteria() {
		super(orm.Trp_curso.class, orm.Trp_cursoCriteria.class);
		cu_id = new IntegerExpression("cu_id", this.getDetachedCriteria());
		cu_curso = new StringExpression("cu_curso", this.getDetachedCriteria());
	}
	
	public Trp_cursoDetachedCriteria(DetachedCriteria aDetachedCriteria) {
		super(aDetachedCriteria, orm.Trp_cursoCriteria.class);
		cu_id = new IntegerExpression("cu_id", this.getDetachedCriteria());
		cu_curso = new StringExpression("cu_curso", this.getDetachedCriteria());
	}
	
	public Trp_nivelDetachedCriteria createNivel_id_nivelCriteria() {
		return new Trp_nivelDetachedCriteria(createCriteria("nivel_id_nivel"));
	}
	
	public Trp_colegioDetachedCriteria createColegioCriteria() {
		return new Trp_colegioDetachedCriteria(createCriteria("colegio"));
	}
	
	public Trp_alumnoDetachedCriteria createTrp_alumno1Criteria() {
		return new Trp_alumnoDetachedCriteria(createCriteria("ORM_Trp_alumno1"));
	}
	
	public Trp_curso uniqueTrp_curso(PersistentSession session) {
		return (Trp_curso) super.createExecutableCriteria(session).uniqueResult();
	}
	
	public Trp_curso[] listTrp_curso(PersistentSession session) {
		List list = super.createExecutableCriteria(session).list();
		return (Trp_curso[]) list.toArray(new Trp_curso[list.size()]);
	}
}

